require 'active_record/fixtures'
class LoadGlobalData < ActiveRecord::Migration
  def self.up
    down

    #g_zh_data = File.join(File.dirname(__FILE__), "dev_data" )

    #Fixtures.create_fixtures(g_zh_data, "global_zh_data" )
    
    
    f = Fixtures.new(ViewTranslation.connection, # a database connection
                     "globalize_languages" , # table name
                     ViewTranslation, # model class

    File.join(File.dirname(__FILE__), "init_data/global_data" ))
    f.insert_fixtures

  end

  def self.down
    ViewTranslation.delete_all "item_id = 86"
    ViewTranslation.delete_all "item_id = 1"
  end
end
